home *** CD-ROM | disk | FTP | other *** search
/ IRIX Installation Tools & Overlays 2002 November / SGI IRIX Installation Tools & Overlays 2002 November - Disc 4.iso / dist / motif21_dev.idb / usr / Motif-2.1 / include / Xm / ContItemT.h.z / ContItemT.h
C/C++ Source or Header  |  2002-10-15  |  2KB  |  62 lines

  1. /* $XConsortium: ContItemT.h /main/5 1995/07/15 20:49:36 drk $ */
  2. /*
  3.  *  @OSF_COPYRIGHT@
  4.  *  COPYRIGHT NOTICE
  5.  *  Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc.
  6.  *  ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for
  7.  *  the full copyright text.
  8.  */
  9. /*
  10.  * HISTORY
  11.  */
  12. #ifndef _XmContainerItemT_H
  13. #define _XmContainerItemT_H
  14.  
  15. #include <Xm/Xm.h>
  16.  
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20.  
  21. externalref XrmQuark XmQTcontainerItem;
  22.  
  23. /* Trait structures and typedefs, place typedefs first */
  24.  
  25. /* this one can be expanded in the future */
  26. typedef struct _XmContainerItemDataRec {
  27.     Mask valueMask ;        /* on setValues, give the information on
  28.                  what to change in the Icon, on getValues,
  29.                  on what to put in the record returned */
  30.     unsigned char view_type;
  31.     unsigned char visual_emphasis;
  32.     Dimension icon_width ;    /* get value */
  33.     Cardinal detail_count;   /* get value */
  34. } XmContainerItemDataRec, *XmContainerItemData;
  35.  
  36. #define ContItemAllValid             (0xFFFF)
  37. #define ContItemViewType         (1L<<0)
  38. #define ContItemVisualEmphasis         (1L<<1)
  39. #define ContItemIconWidth            (1L<<2)
  40. #define ContItemDetailCount          (1L<<3)
  41.  
  42.  
  43. typedef void (*XmContainerItemSetValuesProc)(Widget w, 
  44.                     XmContainerItemData contItemData);
  45. typedef void (*XmContainerItemGetValuesProc)(Widget w, 
  46.                     XmContainerItemData contItemData);
  47.  
  48. /* Version 0: initial release. */
  49.  
  50. typedef struct _XmContainerItemTraitRec {
  51.   int                   version;        /* 0 */
  52.   XmContainerItemSetValuesProc setValues;
  53.   XmContainerItemGetValuesProc getValues;
  54. } XmContainerItemTraitRec, *XmContainerItemTrait;
  55.  
  56.  
  57. #ifdef __cplusplus
  58. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  59. #endif
  60.  
  61. #endif /* _XmContainerItemT_H */
  62.